package ltd.smallwang.client.task.dto;

import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author justd
 * @description 功能描述
 * @since 2024-05-26 07:15
 **/
@Data
public class TaskUpdateCmd {

  private Long id;

  @Size(min = 1, max = 512, message = "name length must be between 1 and 512")
  private String name;

  @Size(max = 65535, message = "description length must be between 0 and 65535")
  private String description;

  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
  private LocalDateTime deadline;
}
